package userbottle.service.impl;

import bottle.entity.Wxbottle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import userbottle.entity.Userbottle;
import userbottle.mapper.Userbottlemapper;
import userbottle.service.Userbottleservice;

import java.util.List;

@Service
public class Userbottleserviceimpl implements Userbottleservice {
    @Autowired
    Userbottlemapper userbottlemapper;
    @Override
    public Integer Selectbottlecount(String openid) {
        return userbottlemapper.Selectbottlecount(openid);
    }

    @Override
    public Integer insertSelective(Userbottle userbottle) {
        return userbottlemapper.insertSelective(userbottle);
    }

    @Override
    public List<Userbottle> SelectOpenidkey(String openid) {
        return userbottlemapper.SelectOpenidkey(openid);
    }

    @Override
    public Integer Selectbottlelostcount(String openid) {
        return userbottlemapper.Selectbottlelostcount(openid);
    }

    @Override
    public List<Userbottle> Selectindex(String openid, Integer bottleid) {
        return userbottlemapper.Selectindex(openid,bottleid);
    }

    @Override
    public Integer Deletebottle(Integer id) {
        return userbottlemapper.Deletebottle(id);
    }

}
